package com.tzy.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tzy.dao.UserMapper;
import com.tzy.entity.User;

/**
* <p>Title: UserServiceImpl</p> 
* <p>Description: </p> 
* @author  唐振耀 
* @date  2019年5月31日
*/
@Service
@Transactional
public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper um;

	@Override
	public User selectUserByName(Integer user_id) {
		return this.um.selectUserByName(user_id);
	}

	@Override
	public boolean updateUserById(User user) {
		return this.um.updateUserById(user);
	}

	@Override
	public boolean updateUserByIdOnPassword(@Param("user_id")Integer user_id, @Param("password")String passwords) {
		return this.um.updateUserByIdOnPassword(user_id,passwords);
	}


}
